package com.yami.shop.delivery.common.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.delivery.common.model.DeliveryOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lhd
 * @date 2020-04-22 15:46:05
 */
public interface DeliveryOrderMapper extends BaseMapper<DeliveryOrder> {

    /**
     * 根据订单号获取物流信息
     *
     * @param orderNumber 订单号
     * @param orderDeliveryId 订单物流包裹id
     * @return 订单物流信息
     */
    List<DeliveryOrder> getAndDeliveryItemInfo(@Param("orderNumber") String orderNumber, @Param("orderDeliveryId") Long orderDeliveryId);
    List<DeliveryOrder> getAndDeliveryExchangeItemInfo(@Param("orderNumber") String orderNumber, @Param("orderDeliveryId") Long orderDeliveryId);
    List<DeliveryOrder> getAndExchangeItemInfo(@Param("orderNumber") String orderNumber);
    /**
     * 根据订单号获取物流信息
     *
     * @param orderNumber 订单号
     * @return 订单物流信息
     */
    List<DeliveryOrder> listDetailDelivery(@Param("orderNumber") String orderNumber);
    List<DeliveryOrder> listExchangeDetailDelivery(@Param("orderNumber") String orderNumber);
}
